package com.gitee.wsl.platform.time

import kotlin.time.TimeSource.Monotonic.ValueTimeMark
import kotlin.time.TimeSource

interface Clock {
    val uptime: ValueTimeMark
    companion object{
        val Default get() = DefaultClock
    }
}

object DefaultClock : Clock {
    override val uptime: ValueTimeMark get() = TimeSource.Monotonic.markNow()
}

